package com.sjy.ylxt.entity.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
* @Author: 史俊颖
* @CreateTime: 2024-12-12
* @Description: ${description}
*/
/**
    * 预约实体类
    */
@ApiModel(description="ylxt_appointments")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class YlxtAppointments implements Serializable {
    @ApiModelProperty(value="")
    @NotNull(message = "不能为null")
    private Long id;

    /**
    * 患者ID
    */
    @ApiModelProperty(value="陪诊员ID")
    private Integer patientId;

    /**
    * 陪诊员ID
    */
    @ApiModelProperty(value="患者ID")
    private Integer companionId;

    /**
    * 预约日期
    */
    @ApiModelProperty(value="预约日期")
    @NotNull(message = "预约日期不能为null")
    @JsonFormat(shape = JsonFormat.Shape.ANY,locale = "zh_CN",pattern = "yyyy-MM-dd",timezone = "GMT")
    private Date appointmentDate;

    /**
    * 预约时间
    */
    @ApiModelProperty(value="预约时间")
    @NotNull(message = "预约时间不能为null")
    @JsonFormat(shape = JsonFormat.Shape.ANY,locale = "zh_CN",pattern = "HH:mm:ss",timezone = "GMT")
    private Date appointmentTime;

    /**
    * 预约状态: 0-未预约 1-已预约 2-已取消 3-已完成
    */
    @ApiModelProperty(value="预约状态: 0-未预约 1-已预约 2-已取消 3-已完成")
    private Integer status;

    /**
    * 创建时间
    */
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
    * 修改时间
    */
    @ApiModelProperty(value="修改时间")
    @JsonFormat(shape = JsonFormat.Shape.ANY,locale = "zh_CN",pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT")
    private Date updateTime;

    /**
    * 创建用户
    */
    @ApiModelProperty(value="创建用户")
    @Size(max = 100,message = "创建用户最大长度要小于 100")
    private String createUser;

    /**
    * 修改用户
    */
    @ApiModelProperty(value="修改用户")
    @Size(max = 100,message = "修改用户最大长度要小于 100")
    private String updateUser;

    /**
    * 删除标志: 0-未删除 1-已删除
    */
    @ApiModelProperty(value="删除标志: 0-未删除 1-已删除")
    private Integer deleteFlag;

    private static final long serialVersionUID = 1L;
}